package com.tau.egonetwork.linkedin;

import java.util.Random;

public class LinkedinUtils {

	public static String generateRandomID() {
		
		char[] CHARSET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".toCharArray();
		int size = 10;
		char[] id = new char[size];
		
		Random rand = new Random();
		
		for (int i = 0; i < 10; i++) {
			int j = rand.nextInt(CHARSET.length - 1);
			id[i] = CHARSET[j];
			if (rand.nextInt() % 2 == 0) {
				id[i] = (CHARSET[j] + "").toLowerCase().charAt(0);
			}
		}
				
		return id.toString();

	}
}
